package coollemon.view;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.io.File;
import java.io.IOException;
public class PhotoScrollPane extends JScrollPane
{
	PhotoPane mainPanel;
	int usedX,usedY;
	PhotoScrollPane()
	{
		this.mainPanel = new PhotoPane();
		this.mainPanel.setPreferredSize(new Dimension(800,800));
		this.setViewportView(mainPanel);
	}
	public static PhotoScrollPane instance = new PhotoScrollPane();
	public static PhotoScrollPane getInstance()
	{
		if(instance == null)
		{
			instance = new PhotoScrollPane();
		}
		return instance;
	}
}
